package com.littlec.sdk.entity.messagebody;

import java.io.File;

import android.os.Parcel;

public class VoiceMailMessageBody extends FileMessageBody {
	private int duration = -1;

	public VoiceMailMessageBody(File paramFile, int duration) {
		if (paramFile != null) {
			this.localPath = paramFile.getAbsolutePath();
			this.fileLength = paramFile.length();
			this.fileName = paramFile.getName();
		}
		this.duration = duration;
	}

	public VoiceMailMessageBody(String fileName, String originalUri,
			int duration) {
		this.fileName = fileName;
		this.originalUri = originalUri;
		this.duration = duration;
	}

	public int getDuration() {
		return this.duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
	}

	public String getContent() {
		return getLocalPath();
	}
}
